package com.fbb.codegen.core.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import lombok.Data;

/**
 * 类成员变量信息
 * 
 * @author fanbeibei
 *
 */
@Data
public class PropVarInfo {

	/**
	 * 是否是Id
	 */
	private int isId = 0;
	/**
	 * 变量名
	 */
	private String varName;
	/**
	 * 变量类型
	 */
	private String type;
	/**
	 * 注释
	 */
	private String comment;
	/**
	 * 列名
	 */
	private String columnName;

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
	}

}
